home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 29 / PC Gamer IT CD 29 2-2.iso / patch / ie4patch / ie4patnt.exe / RCDATA / CABINET / mshtml.dll / HTML / ERROR.DLG < prev    next >
Text File  |  1997-10-16  |  4KB  |  143 lines

  1. <HTML id=dlgFind STYLE="font-family: ms sans serif; font-size: 8pt;
  2. width: 42em; height: 23em">
  3. <HEAD>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <TITLE id=dialogTitle>
  6. Internet Explorer Script Error
  7. </TITLE>
  8. <SCRIPT LANGUAGE="JavaScript" defer>
  9. window.onerror = HandleError
  10. function HandleError(message, url, line)
  11. {
  12. var L_Dialog_ErrorMessage = "An error has occurred in this dialog.";
  13. var L_ErrorNumber_Text = "Error: ";
  14. var str = L_Dialog_ErrorMessage + "\n\n" 
  15.  + L_ErrorNumber_Text + line + "\n"
  16.  + message;
  17. alert (str);
  18. window.close();
  19. return true;
  20. }
  21. function loadBdy()
  22. {
  23. var L_ContinueScript_Message = "Do you want to continue running scripts on this page?";
  24. var objOptions = window.dialogArguments; 
  25. btnNo.onclick = new Function("btnOKClick()");
  26. btnYes.onclick = new Function("btnYesClick()");
  27. document.onkeypress = new Function("docKeypress()");
  28. spnLine.innerText  = objOptions.errorLine;
  29. spnCharacter.innerText = objOptions.errorCharacter;
  30. spnError.innerText  = objOptions.errorMessage;
  31. spnCode.innerText  = objOptions.errorCode;
  32. if (!objOptions.errorDebug)
  33. {
  34.  divDebug.innerText = L_ContinueScript_Message;
  35. }
  36. btnYes.focus();
  37. function btnOKClick()
  38. {
  39. window.close();
  40. function btnYesClick()
  41. {
  42. window.dialogArguments.errorDebug = true;
  43. window.close();
  44. function docKeypress()
  45. {
  46. var L_AffirmativeKeyCodeLowerCase_Number = 121;
  47. var L_AffirmativeKeyCodeUpperCase_Number = 89;
  48. var L_NegativeKeyCodeLowerCase_Number  = 110;
  49. var L_NegativeKeyCodeUpperCase_Number  = 78;
  50. var intKeyCode = window.event.keyCode;
  51. if (intKeyCode == L_AffirmativeKeyCodeLowerCase_Number
  52.  || intKeyCode == L_AffirmativeKeyCodeUpperCase_Number)
  53. {
  54.  btnYesClick();
  55. }
  56. if (intKeyCode == L_NegativeKeyCodeLowerCase_Number
  57.  || intKeyCode == L_NegativeKeyCodeUpperCase_Number)
  58. {
  59.  btnOKClick();
  60. }
  61. </SCRIPT>
  62. </HEAD>
  63. <BODY ID=bdy onLoad="loadBdy()" style="font-family: 'ms sans serif';
  64. font-size: 8pt; background: threedface;" topmargin=0>
  65. <CENTER>
  66. <table cellPadding=3 cellspacing=3 border=0 id=tbl1 
  67. style="background: buttonface; font-family: ms sans serif; font-size: 8pt;">
  68. <TR>
  69. <TD>
  70. <img src=warning.gif width=36 height=38 border=0 align=middle>
  71. </TD>
  72. <TD>
  73. An error has occurred in the script on this page.
  74. </TD>
  75. </TR>
  76. </TABLE>
  77. </CENTER>
  78. <DIV id=divTop style="background: threedface; font-family: ms sans serif; 
  79. font-size: 8pt; margin-left: 1.5em">
  80. <TABLE border=0 id=tbl2
  81. style="background: buttonface; font-family: ms sans serif; font-size: 8pt;
  82. margin-left: 1em">
  83. <TR valign=top>
  84. <TD nowrap>
  85. Line:    
  86. </TD>
  87. <TD>
  88. <SPAN id=spnLine></SPAN>
  89. </TD>
  90. </TR>
  91. <TR valign=top>
  92. <TD nowrap>
  93. Char:    
  94. </TD>
  95. <TD>
  96. <SPAN id=spnCharacter></SPAN>
  97. </TD>
  98. </TR>
  99. <TR valign=top>
  100. <TD nowrap>
  101. Error:    
  102. </TD>
  103. <TD>
  104. <DIV id=spnError style="background: threedface;
  105. font-family: ms sans serif; font-size: 8pt; width: 31em;"></DIV>
  106. </TD>
  107. </TR>
  108. <TR valign=top>
  109. <TD nowrap>
  110. Code:    
  111. </TD>
  112. <TD>
  113. <SPAN id=spnCode></SPAN>
  114. </TD>
  115. </TR>
  116. </TABLE>
  117. </DIV>
  118. <DIV id=divDebug style="background: threedface; position: absolute;
  119. font-family: ms sans serif; font-size: 8pt; top: 15em; 
  120. text-align: center;">
  121. Do you want to debug the current page?
  122. </DIV>
  123. <DIV id=divButttons style="background: buttonface; position: absolute;
  124. font-family: ms sans serif; font-size: 8pt; top: 17.5em">
  125. <CENTER>
  126. <BUTTON ID=btnYes style="font-family: ms sans serif; font-size: 8pt;
  127. width: 3.8em; height: 2.2em;" type=submit accesskey=y>
  128. <U>Y</U>es
  129. </BUTTON>
  130.  
  131. <BUTTON ID=btnNo style="font-family: ms sans serif; font-size: 8pt;
  132. width: 3.8em; height: 2.2em" type=reset accesskey=n>
  133. <U>N</U>o
  134. </BUTTON>
  135. </CENTER>
  136. </DIV>
  137. </BODY>
  138. </HTML>
  139.